package com.ucode.springboot.starter.ESsearch.repository.query;

import java.util.ArrayList;
import java.util.List;

/**
 * 高亮
 * @author: liliang
 * @date: 2019年12月31日 下午2:45:50
 */
public class HighLight {

    private String preTag = "<kwd>";
    private String postTag = "</kwd>";
    
    private List<String> highLightList = null;
    
    public HighLight(){
        highLightList = new ArrayList<>();
    }

    public HighLight field(String fieldValue){
        highLightList.add(fieldValue);
        return this;
    }

    public List<String> getHighLightList(){
        return highLightList;
    }

    public String getPreTag() {
        return preTag;
    }

    public void setPreTag(String preTag) {
        this.preTag = preTag;
    }

    public String getPostTag() {
        return postTag;
    }

    public void setPostTag(String postTag) {
        this.postTag = postTag;
    }
}
